package com.bumptech.glide.load.model;

import android.util.Log;
import com.bumptech.glide.load.Encoder;
import com.bumptech.glide.util.ByteArrayPool;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

public class StreamEncoder
  implements Encoder<InputStream>
{
  private static final String TAG = "StreamEncoder";

  public boolean encode(InputStream paramInputStream, OutputStream paramOutputStream)
  {
    byte[] arrayOfByte = ByteArrayPool.get().getBytes();
    try
    {
      while (true)
      {
        int i = paramInputStream.read(arrayOfByte);
        if (i == -1)
          break;
        paramOutputStream.write(arrayOfByte, 0, i);
      }
    }
    catch (IOException localIOException)
    {
      if (Log.isLoggable("StreamEncoder", 3))
        Log.d("StreamEncoder", "Failed to encode data onto the OutputStream", localIOException);
      return false;
      return true;
    }
    finally
    {
      ByteArrayPool.get().releaseBytes(arrayOfByte);
    }
  }

  public String getId()
  {
    return "";
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.bumptech.glide.load.model.StreamEncoder
 * JD-Core Version:    0.6.2
 */